/*
 * @Author: TJN tjn@246@126.com
 * @Date: 2024-07-16 16:11:41
 * @LastEditors: TJN tjn@246@126.com
 * @LastEditTime: 2024-07-16 16:16:37
 * @FilePath: \router\vite\plugins\mock.ts
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */
import { viteMockServe } from "vite-plugin-mock";
export function getupMockPlugin(isBuild: boolean) {
  return viteMockServe({
    mockPath: "mock",
    enable: !isBuild,
  });
}
